package cn.ac.iscas.domain.flink;

/**
 * @author LJian
 * @version 1.0
 * @description: TODO
 * @date 2022/6/20 8:48
 */
public enum FlinkColumnType {
    TINYINT(1, "TINYINT"),
    SMALLINT(2, "SMALLINT"),
    INT(3, "INT"),
    BIGINT(4, "BIGINT"),
    DECIMAL_INT(5, "DECIMAL(20, 0)"),
    FLOAT(6, "FLOAT"),
    DOUBLE(7, "DOUBLE"),
    BOOLEAN(8, "BOOLEAN"),
    DATE(9, "DATE"),
    TIME (10, "TIME"),
    TIMESTAMP (11, "TIMESTAMP"),
    STRING(12, "STRING"),
    BYTES(13, "BYTES"),
    ARRAY(14, "ARRAY"),
    UNKOWN(15, "UNKOWN");

    private int value;
    private String name;

    FlinkColumnType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
